package org.springblade.modules.admin.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * User: Jackey
 * Date: 2020/2/26
 * Time: 下午7:21
 * Description:
 */

@NoArgsConstructor
@Data
public class RegeoVO {


    /**
     * formatted_address : 广东省中山市火炬开发区街道平安银行(中山凯茵社区支行)雅湖半岛
     * addressComponent : {"city":"中山市","province":"广东省","adcode":"442000","towncode":"442000003000","country":"中国","township":"火炬开发区街道","citycode":"0760"}
     *
     */

    private String formatted_address;
    private AddressComponentBean addressComponent;
    private Aois[] aois;
    private List<Poi> pois;


    @NoArgsConstructor
    @Data
    public static class Poi {

        private String id;
        private String direction;
        private String address;
        private String poiweight;
        private String name;
        private String location;
        private String distance;
    }

    @NoArgsConstructor
    @Data
    public static class AddressComponentBean {
        /**
         * city : 中山市
         * province : 广东省
         * adcode : 442000
         * towncode : 442000003000
         * country : 中国
         * township : 火炬开发区街道
         * citycode : 0760
         */

        private String city;
        private String province;
        private String adcode;
        private String towncode;
        private String country;
        private String township;
        private String citycode;
        private StreetNumberBean streetNumber;

        @NoArgsConstructor
        @Data
        public static class StreetNumberBean {

            private String number;
            private String location;
            private String direction;
            private String distance;
            private String street;
        }

    }
    @NoArgsConstructor
    @Data
      static class Aois {
        private String name;
    }
}

